<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>网站后台管理模版</title>
    <link rel="stylesheet" type="text/css" href="/static/admin/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="/static/admin/css/admin.css"/>
</head>
<body>
<div class="container edui-center">
            <form class="layui-form layui-form-pane"  style="width: 80%;padding-top: 20px;">
                <div class="layui-form-item">
                    <label class="layui-form-label">原住址信息：</label>
                    <div class="layui-input-block">
                        <input type="text" name="id" disabled autocomplete="off" class="layui-input layui-disabled" value="1">
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">婚姻状态:</label>
                    <div class="layui-input-block">
                        <input type="radio" name="sex" value="男" title="男">
                        <input type="radio" name="sex" value="女" title="女" checked>
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">是否更换新宿舍:</label>
                    <div class="layui-input-block">
                        <input type="radio" name="sex" value="男" title="男">
                        <input type="radio" name="sex" value="女" title="女" checked>
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">家庭是否在深圳:</label>
                    <div class="layui-input-block">
                        <input type="radio" name="sex" value="男" title="男">
                        <input type="radio" name="sex" value="女" title="女" checked>
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">是否有深圳户口:</label>
                    <div class="layui-input-block">
                        <input type="radio" name="sex" value="男" title="男">
                        <input type="radio" name="sex" value="女" title="女" checked>
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">是否有暂住证:</label>
                    <div class="layui-input-block">
                        <input type="radio" name="sex" value="男" title="男">
                        <input type="radio" name="sex" value="女" title="女" checked>
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">婚姻状态:</label>
                    <div class="layui-input-block">
                        <input type="radio" name="sex" value="男" title="男">
                        <input type="radio" name="sex" value="女" title="女" checked>
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">是否有介绍信:</label>
                    <div class="layui-input-block">
                        <input type="radio" name="sex" value="男" title="男">
                        <input type="radio" name="sex" value="女" title="女" checked>
                    </div>
                </div>


                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">范围</label>
                        <div class="layui-input-inline" style="width: 100px;">
                            <select name="project" id="project" lay-filter="Pfilter">
                                <option value="">--请选择--</option>
                            </select>
                        </div>
                        <div class="layui-form-mid">/</div>
                        <div class="layui-input-inline" style="width: 100px;">
                            <select name="building" id="building" lay-filter="Bfilter">
                                <option value="">--请选择--</option>
                            </select>
                        </div>
                        <div class="layui-form-mid">/</div>
                        <div class="layui-input-inline" style="width: 100px;">
                            <select name="suite" id="suite" lay-filter="Sfilter">
                                <option value="">--请选择--</option>
                            </select>
                        </div>
                        <div class="layui-form-mid">/</div>
                        <div class="layui-input-inline" style="width: 100px;">
                            <select name="room" id="room" lay-filter="Rfilter">
                                <option value="">--请选择--</option>
                            </select>
                        </div>
                        <div class="layui-form-mid">/</div>
                        <div class="layui-input-inline" style="width: 100px;">
                            <select name="bunk" id="bunk">
                                <option value="">--请选择--</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">申请原因：</label>
                    <div class="layui-input-block">
                        <textarea name="desc" placeholder="请输入内容" class="layui-textarea"></textarea>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-normal" lay-submit lay-filter="adminInfo">立即提交</button>
                    </div>
                </div>
            </form>
</div>
<script src="/static/admin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/TryTest.js" type="text/javascript" charset="utf-8"></script>
<script>
    //Demo
    layui.use(['jquery','form','element'], function(){
        var $ = layui.jquery;
        var form = layui.form();
        var element = layui.element();
        //提交
        form.on('submit(adminInfo)', function(data){
            $.ajax({
                type: "POST",
                url : "/admin/user/s",
                data:{
                    "project":data.field.project,
                    "building":data.field.building,
                    "suite":data.field.suite,
                    "room":data.field.room,
                    "bunk":data.field.bunk
                },
                dataType:"json",
                success : function(data) {
                    layer.msg(data.message)
                }
            })
            return false;
        });
    });
</script>
</body>
</html>